<template>
	<view class="container" :style="{ height: height }">
		<text class="total">{{tab.total}}</text>
		<text 
		class="name"
		:style="{
			color: color
		}">{{tab.name}}</text>
	</view>
</template>
r
<script>
	export default {
		props: {
			tab: {
				type: [String, Number, Object, Array, Boolean]
			},
			height: {
				type: [String, Number]
			},
			fontSize: {
				type: [String, Number]
			},
			fontWeight: {
				type: [String, Number]
			},
			color: {
				type: String
			},
			activeColor: {
				type: String,
				default: ''
			},
			defColor: {
				type: String,
				default: ''
			},
			index: {
				type: [String, Number],
				default: null
			},
			tabsLen: {
				type: [String, Number],
				default: null
			},
			props: {
				type: Object
			},
			type: {
				type: String
			},
			isActive: {
				type: Boolean
			}
		}
	}
</script>

<style scoped>
	.text-item{
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		/* flex: 1; */
		flex-direction: row;
		justify-content: center;
		align-items: center;
	}

	.container {
		position: relative;
		flex-wrap: nowrap;
		/* #ifndef APP-PLUS */
		white-space: nowrap;
		display: flex;
		/* #endif */
		flex-direction: column;
		justify-content: center;
		align-items: center;
		/* padding-top: 10rpx;
		padding-bottom: 10rpx;
		padding-left: 10rpx;
		padding-right: 10rpx; */
	}
	
	.total{
		font-size: 14px;
	}
	
	.name{
		font-size: 14px;
		margin-top: 4px;
	}
</style>
